package com.qst.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author gxh
 * @since 2022-03-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "邮箱（不重）")
    private String email;

    @ApiModelProperty(value = "手机号（不重复）")
    private String phone;

    @ApiModelProperty(value = "规则（角色 0为管理员 1为歌手 2为普通用户）")
    private Integer role;

    @ApiModelProperty(value = "是否激活（针对歌手）")
    private Integer activation;

    private LocalDate createTime;

    private String imageUrl;

    private String about;


}
